using memdb_demo.Utils;

namespace memdb_demo.Models{
    public class MonitorOrder:NotifyPropertyChangedObject{
        private string _key=string.Empty;
        public string Key{ get=>_key;set=>base.RaiseAndSetIfChanged(ref _key,value);}

        private string _orderNo=string.Empty;
        public string OrderNo{ get=>_orderNo;set=>base.RaiseAndSetIfChanged(ref _orderNo,value);}

        private char _buySellFlag=char.MinValue;
        public char BuySellFlag{ get=>_buySellFlag;set=>base.RaiseAndSetIfChanged(ref _buySellFlag,value);}

        public MonitorOrder(OrderRecord record)
        {
            this.Key = record.Key;
            this.OrderNo = record.OrderNo;
            this.BuySellFlag = record.BuySellFlag;
        }
    }
}